﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_BBS_AddFile]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_BBS_AddFile];
GO
CREATE PROCEDURE [dbo].[sproc_BBS_AddFile]
@name nvarchar(500),
@extension nvarchar(100)
AS

    INSERT INTO UDS_BBS_Attachment(Name,Extension)
    VALUES(@name,@extension)
    RETURN @@IDENTITY